package com.snpic.appaw.module.third.api.commonCertification;

import com.snpic.appaw.framework.common.pojo.CommonResult;
import com.snpic.appaw.module.third.api.commonCertification.dto.RealNameVerificationReqDTO;
import com.snpic.appaw.module.third.api.commonCertification.dto.RealNameVerificationRspDTO;
import com.snpic.appaw.module.third.api.deepOCR.dto.VehicleLicenseReqDTO;
import com.snpic.appaw.module.third.api.deepOCR.dto.VehicleLicenseRespDTO;
import com.snpic.appaw.module.third.service.commonCertification.CommonCertificationService;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author JiJun
 * @date 2025/9/18 18:17
 * @修改时间 2025/9/18 18:17
 * @description 统一配置化实名验真, 各渠道场景实名验真
 */
@RestController // 提供 RESTful API 接口，给 Feign 调用
@Validated
public class CommonCertificationApiImpl implements CommonCertificationApi{
	@Resource
	private CommonCertificationService commonCertificationService;


	@Override
	public CommonResult<RealNameVerificationRspDTO> realNameVerification(RealNameVerificationReqDTO reqDTO) {
		return CommonResult.success(commonCertificationService.realNameVerification(reqDTO));
	}
}
